package com.zhangshitong.util;

import org.apache.commons.lang3.StringUtils;


public class LevelUtilCopy {

	private final static String ROOT ="0";
	
	private final static String SEPARATOR =".";
	
	public static String calculateLevel(String parentLevel,int parentId){
	
		if(StringUtils.isBlank(parentLevel)){
			return ROOT;
		}else{
			
			return StringUtils.join(parentLevel,SEPARATOR,parentId);
		}
	}
}
